package ch01;


import java.util.Date;
import javax.jws.WebService;

@WebService(endpointInterface = "ch01.TimeServer")
public class TimeServerImpl implements TimeServer{
	
	public String getTimeAsString(){
		return new Date().toString();
	}
	
	public long getTimeAsElapsed(){
		return new Date().getTime();
	}
}
